import 'package:flutter_deer/generated/json/base/json_field.dart';
import 'package:flutter_deer/generated/json/expenditure_progress_entity.g.dart';

@JsonSerializable()
class ExpenditureProgressEntity {
  ExpenditureProgressEntity(
      {this.agency_name,
      this.fiscal_year,
      this.amount,
      this.cur_amt,
      this.total_amt,
      this.amt1,
      this.amt2,
      this.amt3
      });

  factory ExpenditureProgressEntity.fromJson(Map<String, dynamic> json) =>
      $ExpenditureProgressEntityFromJson(json);

  Map<String, dynamic> toJson() => $ExpenditureProgressEntityToJson(this);
  String? agency_name;
  String? fiscal_year;
  String? amount;
  String? cur_amt;
  String? total_amt;
  String? amt1;
  String? amt2;
  String? amt3;
}

@JsonSerializable()
class ExpenditureProgressPageEntity {
  ExpenditureProgressPageEntity();

  factory ExpenditureProgressPageEntity.fromJson(Map<String, dynamic> json) =>
      $ExpenditureProgressPageEntityFromJson(json);

  Map<String, dynamic> toJson() => $ExpenditureProgressPageEntityToJson(this);

  int? total;
  int? size;
  int? current;
  int? pages;
  List<ExpenditureProgressEntity>? records;
}
